package com.hyk.fegin;

import com.hyk.config.auth.OAuth2FeignConfig;
import com.hyk.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "admin-service",
            contextId = "adminBank",
            configuration = OAuth2FeignConfig.class,
            path = "/adminBanks")
public interface AdminBankFegin {

    @GetMapping("/getAdminBank")
    AdminBankDto getAdminUser();

}
